//
//  ChannelVIew.m
//  UI_Project_A
//
//  Created by dllo on 16/1/24.
//  Copyright © 2016年 GH. All rights reserved.
//

#import "ChannelVIew.h"

@interface ChannelVIew ()

@property (nonatomic ,retain)UILabel *label;

@end



@implementation ChannelVIew

- (void) dealloc{

    [_label release];
    [super dealloc];


}




- (instancetype)initWithFrame:(CGRect)frame {

    self = [super initWithFrame:frame];
    
    if (self) {
        
        [self createLabel];
        
    }



    return self;

}

- (void)createLabel {

    self.label = [[UILabel alloc]init];
    
    self.label.text = @"我的频道";


    [self addSubview:self.label];


}

- (void)layoutSubviews {

    [super layoutSubviews];
    self.label.frame = CGRectMake(self.frame.size.width/2-35, 20, 150, 40);


}





@end
